//
//  WHYUser.swift
//  WHYWeibo-1.0
//
//  Created by 王洪运 on 15/11/25.
//  Copyright © 2015年 王洪运. All rights reserved.
//

import UIKit

class WHYUser: NSObject {
    
 /// 用户UID
    var id: Int = 0
 /// 昵称
    var screen_name: String?
 /// 头像地址
    var profile_image_url: String?
 /// 认证类型   无认证：-1   认证用户：0   认证企业：2，3，4   达人：220
    var verified_type: Int = 0
 /// 会员等级     0~6
    var mbrank: Int = 0
    
    init(dict: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {    }

    override var description: String {
        let keys = ["id", "screen_name", "profile_image_url", "verified_type", "mbrank"]
        
        return dictionaryWithValuesForKeys(keys).description
    }
}
